package com.itheima.area.pojo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.List;

/**
 * 农田
 */
@Table(name = "t_cust_farmland")
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(value = { "handler"})
public class CustFarmland {
    /**
     *
     */
    @Id
    private Long id;

    /**
     * 所属农场
     */
    private Long fid;

    /**
     * 大小
     */
    private String size;

    /**
     * 形状
     */
    private String shape;

    /**
     * 编号
     */
    private String code;

    /**
     * 状态
     */
    private String status;

    private List<CustFarmlandCrop> custFarmlandCropList;

    private List<CustFarmlandDevice> custFarmlandDeviceList;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getFid() {
        return fid;
    }

    public void setFid(Long fid) {
        this.fid = fid;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getShape() {
        return shape;
    }

    public void setShape(String shape) {
        this.shape = shape;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

}

